function printName(obj) {
    console.log(obj.name);
}
printName({ name: "Alice", age: 30 });
